/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2015-2018.
 * Description: memory.h
 * Author: wangle <wangle6@huawei.com>
 * Create: 2015-05-17
 */

#include <generated/autoconf.h>

#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H

/*
 * Physical DRAM offset.
 */
#ifdef CONFIG_SPARSEMEM
#ifdef CONFIG_PHYS_ADDR_T_64BIT
#define MAX_PHYSMEM_BITS        36
#define SECTION_SIZE_BITS       28
#else
#define SECTION_SIZE_BITS    26
#define MAX_PHYSADDR_BITS    32
#define MAX_PHYSMEM_BITS     32
#endif
#endif  /* CONFIG_SPARSEMEM END */

#endif /* __ASM_ARCH_MEMORY_H */
